//60以上合格
let score = 80;
// parseInt()取整
switch (parseInt(score / 10)) {
    case 10:
    case 9:
    case 8:
    case 7:
    case 6:
        console.log("合格");
        break;
    default:
        console.log("不合格");
}